
package cn.stylefeng.guns.sys.modular.system.controller;

import cn.hutool.core.io.FileUtil;
import cn.stylefeng.guns.base.auth.annotion.Permission;
import cn.stylefeng.guns.base.log.BussinessLog;
import cn.stylefeng.guns.base.pojo.page.LayuiPageFactory;
import cn.stylefeng.guns.sys.core.constant.Const;
import cn.stylefeng.guns.sys.modular.system.entity.Kms;
import cn.stylefeng.guns.sys.modular.system.entity.SysQnlKey;
import cn.stylefeng.guns.sys.modular.system.service.KmsService;
import cn.stylefeng.guns.sys.modular.system.service.SysQnlKeyService;
import cn.stylefeng.roses.core.base.controller.BaseController;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import java.io.File;
import java.util.List;
import java.util.Map;

/**
 * @author YuJiBiao
 * @version: 1.0
 * @Date 2020/7/8 16:30
 **/
@Controller
@RequestMapping("/sysQnlKey")
public class SysQnlKeyPageController extends BaseController {

    @Autowired
    SysQnlKeyService sysQnlKeyService;

    private String PREFIX = "/modular/system/sysQnlKey/";



    @RequestMapping("/list")
    @ResponseBody
    public Object list(@RequestParam(required = false) String status) {
        //获取分页参数
        Page<Map<String, Object>> mapPage = sysQnlKeyService.selectSysQnlKey(status);
        return LayuiPageFactory.createPageInfo(mapPage);
    }
    /**
     *
     *
     * @author fengshuonan
     * @Date 2018/12/23 4:56 PM
     */
    @RequestMapping("")
    public String index() {
        return PREFIX + "sysQnlKey.html";
    }


}
